<!DOCTYPE html>
<html>


<!-- Mirrored from /theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改广告</title>
    <meta name="keywords" content="修改广告">
    <meta name="description" content="修改广告">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="http://news.xiangtws.com/__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">


    <link href="__PUBLIC__/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="http://news.xiangtws.com/__PUBLIC__/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title" style="min-height: 65px;">
                    <h5>
                        <a href="__CONTROLLER__/index/" title="广告管理">
                            <button type="button" class="btn btn-primary">广告管理</button>
                        </a>
                    </h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal js_form" action="__CONTROLLER__/editAdvert/">
                        <input type="hidden" name="id" value="{$info.id}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告标题</label>
                            <div class="col-sm-5">
                                <input type="text" name="title" value="{$info.title}" class="form-control" placeholder="请输入广告标题" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告位</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b" name="type" required>
                                    <option>请选择广告位</option>
                                    <option value="0" <?=$info['type']==0?'selected':''?>>轮播广告图</option>
                                    <option value="1" <?=$info['type']==1?'selected':''?>>列表广告图</option>
                                    <option value="2" <?=$info['type']==2?'selected':''?>>详情页广告图</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电脑端OR手机端</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b" name="place" required>
                                    <option>请选择电脑端OR手机端</option>
                                    <option value="0" <?=$info['place']==0?'selected':''?>>手机端</option>
                                    <option value="1" <?=$info['place']==1?'selected':''?>>电脑端</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告跳转链接</label>
                            <div class="col-sm-5">
                                <input type="text" name="link" value="{$info.link}" placeholder="请输入广告跳转链接" class="form-control" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">广告图片</label>
                            <div class="col-sm-5">
                                <input type="text" name="pic" value="{$info.pic}" placeholder="请输入广告图片链接" class="form-control" required>
                                <img height="300px" src="{$info.pic}" style="margin-top:15px;" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/js/jquery.form.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>


<script>
    //表单提交
    $(".js_form").ajaxForm({
        //定义返回JSON数据，还包括xml和script格式
        dataType: 'json',
        success: function(data) {
            //提交成功后调用
            if(data.status==1) {
                layer.msg(data.info, {icon:1,time:1000},
                    function(){
                        window.location.href= data.url;
                    });
            }else{
                layer.msg(data.info, {icon:2,time:1000});
            }
        }
    });
</script>
</body>


<!-- Mirrored from /theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
</html>
